Taxonomy based database partitioning

ABSTRACT

In one aspect of the invention, a memory is described for facilitating splitting data by taxonomy. The memory is accessed by an application program, and includes one or more top-level categories, where each top-level category comprises a subset of the items; and also includes a category group corresponding to at least one of the top-level categories and the subset of the items belonging to the top-level categories.

RELATED APPLICATIONS

This application is a continuation of U.S. application Ser. No. 09/992,594 filed Nov. 13, 2001, and claims the benefit of U.S. Provisional Application No. 60/248,466 filed Nov. 4, 2000, which applications are incorporated herein by reference in their entirety.

COPYRIGHT NOTICE

This application claims the benefit of U.S. Provisional Application No. 60/248,466, filed Nov. 14, 2000, which is incorporated herein by reference. Contained herein is material that is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction of the patent disclosure by any person as it appears in the Patent and Trademark Office patent files or records, but otherwise reserves all rights to the copyright whatsoever.

FIELD OF THE INVENTION

This invention relates to the field of computer databases, and more specifically, to a database architecture structured in accordance with an information taxonomy.

BACKGROUND OF THE INVENTION

A database is a collection of information organized in such a way that a computer program can quickly select desired pieces of data. Traditional databases are organized by fields, records, and files. A field is a single piece of information; a record is one complete set of fields; and a file, also known as a table, is a collection of records. A database may comprise a number of tables that are linked by indices and keys, or may be a collection of objects in an object-oriented database.

For example, an employee database may comprise an address book table and a salary table. Within the address book table, each employee record may comprise information such as the employee name, employee number, birth date, address, and hiring date, and within the salary table, each employee record may comprise information such as the employee number, hiring date, hiring level, job title, and salary. The tables and objects for a given database may exist on one or more database instances.

The amount of information that a typical database holds can be astronomical, particularly with Internet-based transactions where the collection and dissemination of information is so vast. In an effort to impart structure to information collected in a database, data (i.e., information in the database) can be organized and partitioned to make databases more manageable. Typically, data is organized and partitioned by item numbers, or numerical identifiers that identify an entry in a database.

For example, in an employee database keyed (i.e., uniquely identified) by employee numbers, data (i.e., employee records) can be organized and partitioned such that employee records 1-100 reside on database instance A; employee records 101-200 reside on database instance B; and employee records 201-300 reside on database instance C; for example. As another example, in a products database keyed by a product number, data can be organized and partitioned such that item numbers 1000-1999 reside on server A; item numbers 2000-2999 reside on server B; and item numbers 3000-3999 reside on server C.

A disadvantage of this system of organization is lack of ease of manageability. A database in which data is partitioned according to a numerical scheme does not lend itself to certain database management tasks, such as strategically splitting data across machines. The task of splitting fixed-size employee records 1-10,000, for example, across 3 machines can be a simple task. However, the complexity of the task may increase when splitting variable-size product records 1-10,000 across 3 machines, since there is no efficient way of partitioning the variable-size records to facilitate database management decisions.

For example, if a database administrator decided that higher-priced products should be stored on the most expensive platform, or that certain machines should be backed-up more frequently because they store high-activity products, it could not feasibly be determined how the records could be partitioned to accommodate these splits.

SUMMARY OF THE INVENTION

In one embodiment of the invention, described herein is a memory that facilitates splitting data by taxonomy. The memory may be accessed by an application program, and includes one or more top-level categories, where each top-level category comprises a subset of items; and also includes a category group corresponding to at least one of the top-level categories and the subset of the items belonging to the top-level categories.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention is illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar elements and in which:

FIG. 1 is a block diagram illustrating an architecture for a network-based auction facility within which embodiments of the invention may be implemented.

FIG. 2 is a block diagram illustrating an item database architecture in preferred embodiments of the present invention.

FIG. 3 is an object relation diagram showing a prior art relationship between item information objects and category groups.

FIG. 4 is an object relation diagram showing a relationship between item information objects and category groups of the present invention.

FIG. 5 is an object relation diagram showing a relationship between category groups and top-level categories of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

Described herein is a method, system, and apparatus for partitioning a database by taxonomy. As used herein, a taxonomy refers to a classification of items. In embodiments of the invention, an auction database is illustrated, where the auction database comprises items for sale on an auction website. As used herein, a database refers to all instances of a collection of related information. For example, an auction database can refer to a collection of auction items on machine A for only a single database instance of the auction database, or it can refer to a collection of auction items on storage devices A, B, and C for multiple database instances of the auction database.

In embodiments of the invention, an auction database is partitioned such that there are multiple database instances of the auction database, and items are distributed across multiple storage devices, where each storage devices comprises one or more groups of auction items related by a category group.

The present invention includes various operations, which will be described below. The operations of the present invention may be performed by hardware components or may be embodied in machine-executable instructions, which may be used to cause a general-purpose or special-purpose processor or logic circuits programmed with the instructions to perform the operations. Alternatively, the operations may be performed by a combination of hardware and software.

The present invention may be provided as a computer program product which may include a machine-readable medium having stored thereon instructions which may be used to program a computer (or other electronic devices) to perform a process according to the present invention. The machine-readable medium may include, but is not limited to, floppy diskettes, optical disks, CD-ROMs, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, magnet or optical cards, flash memory, or other type of media/machine-readable medium suitable for storing electronic instructions.

Moreover, the present invention may also be downloaded as a computer program product, wherein the program may be transferred from a remote computer (e.g., a server) to a requesting computer (e.g., a client) by way of data signals embodied in a carrier wave or other propagation medium via a communication link (e.g., a modem or network connection). Accordingly, herein, a carrier wave shall be regarded as comprising a machine-readable medium.

Introduction

Embodiments of the present invention may be implemented in an online registration page for a website auction, such as eBay.com of eBay™ Inc. of San Jose, Calif. FIG. 1 is a block diagram illustrating an architecture for a network-based transaction facility in the form of an Internet-based auction facility 100, such as eBay.com. While an exemplary embodiment of the present invention is described within the context of an auction facility, it will be appreciated by those skilled in the art that the invention will find application in many different types of computer-based, and network-based commerce facilities.

The auction facility 100 includes one or more of a number of types of front-end servers, namely page servers 102 that deliver Web pages (e.g., markup language documents), picture servers 104 that dynamically deliver images to be displayed within Web pages, listing servers 106, CGI (Common Gateway Interface) servers 108 that provide an intelligent interface to the back-end of facility 100, and search servers 110 that handle search requests to the facility 100. E-mail servers 112 provide, inter alia, automated e-mail communications to users of the facility 100. The back-end servers include a database engine server 114, a search index server 116, and a credit card database server 118, each of which maintains and facilitates access to a respective database 120, 122, 124.

The internet-based auction facility 100 may be accessed by a client program 128, such as a browser (e.g., Internet Explorer distributed by Microsoft Corp. of Redmond, Wash.) that executes on a client machine 126 and accesses the facility 100 via a network such as, for example, the Internet 130. Other examples of networks that a client may utilize to access the auction facility 100 include a wide area network (WAN), a local area network (LAN), a wireless network (e.g., a cellular network), or the Plain Old Telephone Service (POTS) network.

FIG. 2 is a diagram illustrating the database 120, maintained by and accessed via the database engine server 114, which at least partially implements and supports the auction facility 100. The database 120 may, in one embodiment, be implemented as a relational database, and includes a number of tables that are linked by indices and keys. In an alternative embodiment, the database 120 may be implemented as a collection of objects in an object-oriented database. In all embodiments, the tables or objects may be implemented on one or more storage devices.

Central to the database 120 is a user table 200, which contains a record for each user of the auction facility 100. A user may operate as a seller, buyer, or both, within the auction facility 100. The database 120 also includes item tables 202 that may be linked to the user table 200. Specifically, the item tables 202 comprise an items table 204, a description table 206, and a bids table 208. A user record in the user table 200 may be linked to multiple items that are being, or have been, auctioned via the facility 100. A link indicates whether the user is a seller or a bidder (i.e., buyer) with respect to items for which records exist within the item tables 202.

Under existing architecture, database 120 resides on a single storage device, such that item tables and user tables, for example, reside on the single storage device. Under an architecture of the present invention, database 120 may reside on a plurality of storage devices such that item tables and user tables may be split across multiple storage devices. In preferred embodiments of the invention, a storage device comprises a memory in a computer system, hereinafter generically referred to as a machine. Other storage devices, such as CD-ROMs and tape drives, are also within the scope of the invention.

Category Groups and Top-Level Categories

In preferred embodiments of the invention, database 120 comprises information about items for sale on an auction website. Items may comprise dolls, antiques, computers, and cars, for example, and are categorized by a top-level category for buyer convenience. For example, items may be categorized in any of the following top-level categories:

Antiques & Art

Books, Movies & Music

Coins & Stamps

Collectibles

Computers

Dolls, Figures

Jewelry, Gemstones

Photo & Electronics

Pottery & Glass

Sports

Toys, Bean Bag Plush

Everything Else

Great Collections

It should be understood that this list is for illustrative purposes only, and does not represent an exhaustive or even a necessary list.

FIG. 3 illustrates a prior art embodiment of the item tables architecture, where items 300, descriptions 302, and bids 304 for a given item are related by top-level category 306. For a given auction item, such as a porcelain doll, item information objects are created for item information. Item information objects include records comprising item 300, description 302, and bid 304 information that are related to a given auction item. Related item information objects, i.e., item information objects associated with the same item, may be located on a single database instance, or on multiple database instances.

FIG. 4 illustrates an embodiment of the item tables architecture, where the item information objects for a given item are related to one another by a category group 400 layer on top of a top-level category 306 layer.

As illustrated in FIG. 5, each category group 400 a, 400 b comprises one or more top-level categories 300 a, 300 b, and each top-level category belongs to one or more category groups. For example, a category group “Category Group I” may comprise top-level categories “Dolls, Figures”, “Coins & Stamps”, and “Collectibles”. Thus, in addition to being related by top-level category “Dolls, Figures”, item information objects for the porcelain doll are also related by a category group, “Category Group 1”.

Each top-level category 306 may belong, or correspond, to one or more category groups 400, where a category group is identified by a category group identifier such as an alphanumeric label. For purposes of illustration, category groups are designated by a Roman numeral, such as “Category Group I”, “Category Group II”, etc. A top-level category 306 a may correspond to one category group 400 a, where every item in the top-level category 306 a belongs to the same category group 400 a, or a top-level category 306 b may be partitioned such that items within a single top-level category 306 b are divided into two or more category groups 400 a, 400 b. This can be implemented via a cross-reference table, or via methods and classes, for example.

Each category group 400 a, 400 b may exist on, or correspond to, one or more database instances. In other words, since a category group 400 comprises related tables of item information (i.e., items, item descriptions, and item bids), items in the related tables may be located on one or more database instances. Splitting tables within a category group may also be implemented via a cross-reference table, or via methods and classes, for example.

Adding Items to a Database Partitioned by Taxonomy

Item records are processed before they are added to database 120. In embodiments of the invention, an auction user adds an item to database 120 by entering item information through an item registration page. The item registration page solicits information about an item to be sold on an auction website, such as a “Title”, “Category”, “Description”, “Picture URL”, and “Item Location”, to name a few.

An item number is created for the newly added item. In one embodiment, an item number comprises an automatically generated number and a category group 400 appended to the automatically generated number. As an item (and its item number) corresponds to a top-level category, and a top-level category belongs to a category group, the appended category group 400 corresponds to the item. This embodiment entails automatically generating a number, where the number can be arbitrary, or sequential.

The top-level category 306 corresponding to the entered item is used to determine a corresponding category group 400. A category group identifier corresponding to the category group 400 for the given item is then appended to the automatically generated number to generate an item number. The automatically generated number can be globally unique, or it can be locally unique, where the automatically generated number is generated within the category group to which the item belongs.

In another embodiment, an item number is generated for an item in accordance with a numbering scheme unique to the item's category group. For example, a “Category Group I” category group may comprise item numbers 1-10,000 corresponding to low-volume top-level categories, and a “Category Group II” may comprise item numbers 50,000-1,000,000 corresponding to high-volume top-level categories. Thus, if an item is added, and corresponds to “Category Group II” (i.e., the item belongs to a top-level category corresponding to “Category Group II”), then an item number will be generated in the range of 50,000-1,000,000.

An item information object comprising a record is created in item table and a related item information object comprising a corresponding record is created in item descriptions table. Records in item table comprise data fields for item information such as ‘Title” and “Category”, and records in item descriptions table comprise data fields for information such as “Description”. Records in the items table also comprise an item number. As buyers place bids on an auction item, related item information objects comprising records corresponding to the auction item are created in the bids table.

Searching for Items in a Database Partitioned by Taxonomy

A website auction user may search for items in auction database 120. Auction user enters a search word or phrase to search for items. In one embodiment, a user may request to search all categories. In this embodiment, each category group comprises its own search database, and well-known methods of text search are executed over each search database. Item numbers corresponding to relevant items are returned.

In an alternative embodiment, users are limited to search within top-level categories. A user selects a top-level category to conduct a search, and well-known methods of text search are executed over the search database corresponding to the selected top-level category.

In yet another embodiment, multiple streams of items (one from each category group) are input to the search database. The indexing is then serialized when all updates from all groups are completed.

Listing Items in a Database Partitioned by Taxonomy

A website auction user may list items in the auction database 120. In one embodiment, a ListingsProduce method is executed for each category group to generate an items.map file for each category group. A dynamic link library (DLL) is programmed to read multiple items.map files, which then displays items in auction database 120.

In another embodiment, there is a pool having one or more machines for each category group. In this case, the DLL maintains link consistency between the pages.

Caches

Since item information is potentially split across multiple databases, joins with tables comprising other information are not always possible. For instance, each item record tracks a seller of the item, as well as a high bidder for the item. Under the current architecture, when a given item is displayed, an items table comprising seller I.D.s and high bidder I.D.s, a seller table comprising seller I.D.s and seller text, and a bidder table comprising bidder I.D.s and bidder text, which all exist on the same database instance, are joined such that each item corresponds to a seller I.D. as well as seller text, and to a high bidder I.D. as well as high bidder text. This all occurs under a single join operation.

Since a join operation cannot always be utilized under an architecture of the existing invention, other methods must be utilized to obtain information. In the example above, seller and high bidder text for a given item can be obtained by matching the seller I.D. in the item record to the seller I.D. in the seller record, and by matching the high bidder I.D. in the item record to the bidder I.D. in the bidder record. However, since two operations are now performed rather than a single operation, machine performance may become an issue. Consequently, caches are used in the present invention to optimize data retrieval.

User List Cache

A user list cache makes seller and bidder text available to requesting processes. In reference to the example above, when an item is displayed, a user list cache is accessed to determine if the corresponding seller I.D. and the corresponding high bidder I.D. for the item exist. If the I.D.s exist in the cache, then the seller and bidder text are retrieved from the cache and displayed. If not, then the seller I.D. is keyed to the seller I.D. in the seller table, and a record is created for the seller I.D. and corresponding text in the cache; and the bidder I.D. is keyed to the bidder table, and a record is created for the bidder I.D. and corresponding text in the cache.

The next time the seller I.D. or the bidder I.D. is encountered, the corresponding text can be retrieved from the cache on the machine from which the application is being executed, rather than from the database instance, which can be on another machine.

Category Group Cache

A category group cache makes item information, such as an item description, available to requesting processes. For instance, when an item is displayed, a category group cache is accessed to determine if the item description corresponding to the item exists in the cache. If the item exists in the cache, then the corresponding item description is retrieved from the cache and displayed. If not, then the item is keyed to the item description table, and a record is created for the item and its corresponding item description in the cache. The next time the item is encountered, the corresponding item description can be retrieved from the cache on the machine from which the application is being executed, rather than from the database instance, which can be on another machine.

Seller Category Group Cache and Bidder Category Group Cache

Auction users may request to track bidding and selling activities. If a user requests items that the user has bidded on, a list of items and corresponding item information is retrieved for the user. Similarly, if a user requests items that the user has listed for sale, a list of those items and corresponding item information is retrieved for the user. However, since item information is not necessarily located on the same database instance, item information objects cannot be joined. Consequently, to find all items would require searching all category groups, which can be located on more than one database instance, and would be a time-consuming process.

Instead, item information is obtained from a seller category group cache or a bidder category group cache. When a user bids on or sells an item in a category group, an entry for the user is created in the user category group cache if the user doesn't already exist. The user entry in the user category group cache is then associated with the category group corresponding to the item in question.

These caches facilitate a request, for example, to find all items that a particular seller is selling, or to find all items that a particular buyer is bidding on. Instead of searching through every category group to find items associated with a particular seller or a particular bidder, the caches can be consulted to find only those category groups in which the seller is selling, or in which the buyer is bidding.

CONCLUSION

The invention as described above provides several advantages over what is currently done. The failure of any single machine comprising one or more category groups will not affect all items. Splitting items across several database instances allows items to be added without having to worry about running a machine to capacity. Splitting data by taxonomy also simplifies database management tasks if a particular business associated with the items provides some predictability about the size and activity of the data being split off. Taxonomy-based partitioning provides tangible benefits. Data stored in accordance with the taxonomy allows data to be more efficiently stored, and allows data to be more efficiently backed-up.

In the foregoing specification, the invention has been described with reference to specific embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.

For example, embodiments of this invention should not be limited to the area of e-commerce, or online auctions, to the extent that the embodiments do not read upon prior art. It should be understood by one skilled in the art that concepts of this invention have general application in the area of database management. Furthermore, any references to specific top-level categories or category groups should not be construed as being limited to those discussed. It should be understood that such references are for illustrative purposes only. 

1. (canceled)
 2. A system comprising: a memory comprising one or more top-level categories, each top-level category including a subset of the items; a category group including at least one of the top-level categories and the subset of the items belonging to at least one of the top-level categories, items corresponding to a given top-level category being split among a plurality of category groups; and a server comprising a database engine coupled to the memory, the database engine configured to provide a listing of top-level categories, to determine a top-level category corresponding to an item, to determine a category group corresponding to the top-level category, and to assign the top-level category and the category group to the corresponding item, to partition the top-level category by dividing items within a single top-level category into two or more category groups, and to partition a database in the memory by category group into multiple database instances of the database across multiple storage devices, each storage device configured to store groups of items related by category group.
 3. The system of claim 2, wherein the memory is to be accessed by an application program and includes item records corresponding to an item, said item records belonging to said item as being related by a top-led category, and being related by a category group corresponding to the top-level category.
 4. The system of claim 3, wherein a first one of related item records resides on a database instance different from a second one of related item records based on the item number.
 5. The system of claim 3, wherein a first one of item records corresponding to the same top-level category belongs to a category group different from a second one of item records corresponding to the same top-level category.
 6. The system of claim 3, wherein the memory is accessed by an application program to process transactions on an auction website.
 7. A system comprising: a memory to be accessed by an application program, the memory comprising at least one top-level category identifier; at least one category group identifier corresponding to the at least one top-level category identifier; and one or more item information objects each corresponding to a top-level category identifier, and each corresponding to a category group that corresponds to the top-level category identifier, each item information object corresponds to as record, the record including information including at least one of the following: an item number; an item description; or one or more item bids; and a server comprising the application program coupled to the memory, the application program configured to provide a listing of top-level categories, to determine a top-level category corresponding to an item, to determine a category group corresponding to the top-level category, to determine one or more locations corresponding to the category group, to create at least one item information object corresponding to the item, to assign the top-level category and the category group to the at least one item information object, and to store the at least one item information object at the one or more locations corresponding to the category group, to partition the top-level category by dividing items within a single top-level category into two or more category groups, and to partition a database in the memory by category group into multiple database instances of the database across multiple storage devices, each storage device configured to store groups of items related by category group.
 8. The system of claim 7, wherein related item information objects are located on a single database instance.
 9. The system of claim 7, wherein the item information objects each correspond to an auction item on an auction website.
 10. The system of claim 7, wherein a first item information object corresponding to a first item of a first category group resides on a first database instance of the database based on the item number of the first item, a second item information object corresponding to a second item of a second category group resides on a second database instance of the database based on the item number of the second item.
 11. The system of claim 10, wherein the first database instance of the database resides on a first machine, wherein the second database instance of the database resides on a second machine separate from the first machine.
 12. A method comprising: storing one or more top-level categories in a memory, each top-level category including a subset of the items, a category group including at least one of the top-level categories and the subset of the items belonging to at least one of the top-level categories, items corresponding to a given top-level category being split among a plurality of category groups; providing, with a database engine of server, a listing of top-level categories; determining a top-level category corresponding to an item; determining a category group corresponding to the top-level category; assigning the top-level category and the category group to the corresponding item; partitioning the top-level category by dividing items within a single top-level category into two or more category groups; and partitioning a database in the memory by category group into multiple database instances of the database across multiple storage devices, each storage device configured to store groups of items related by category group.
 13. The method of claim 12, further comprising: accessing the memory by an application program, the memory including item records corresponding to an item, said item records belonging to said item as being related by a top-level category, and being related by a category group corresponding to the top-level category.
 14. The method of claim 13, wherein a first one of related item records resides on a database instance different from a second one of related item records based on the item number.
 15. The system of claim 13, wherein a first one of item records corresponding to the same top-level category belongs to a category group different from a second one of item records corresponding to the same top-level category.
 16. The system of claim 13, wherein the memory is accessed by an application program to process transactions on an auction website. 